<cfoutput>
	<cfloop collection="#imgs#" item="key">
	   <cfscript>
            powershell = CreateObject("webservice", "http://scfcas/PowerShellService/?WSDL");
            result = powershell.Invoke('add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin
            $user = Get-User "' & key & '" -ErrorAction SilentlyContinue;
            $FileData = [Byte[]]$(Get-Content -Path "' & imgs[key] & '" -Encoding Byte -ReadCount 0);
            $adsiuser = [ADSI]"LDAP://$($user.OriginatingServer)/$($user.DistinguishedName)";
            $adsiuser.Put("thumbnailPhoto", $FileData);
            $adsiuser.SetInfo();
            ');
        </cfscript>
	</cfloop>
</cfoutput>